package experiment4;

import javax.accessibility.AccessibleKeyBinding;

public class test3 {
    public static void main(String[] args) {

        //测试3
        Account[] b=new Account[100];
        Bank bank=new Bank(b);
        Account p1=new Account("zhangsan",2,100);
        p1.applyBankAccount(bank,p1);
        System.out.println(bank.getBank()[0].getCertain());


        //测试4
        Account p2=new Account("lisi",1,100);
        p2.applyBankAccount(bank,p2);
        bank.chargeAToB(p1,p2,100);
        System.out.println(p1.getCertain());
        System.out.println(p2.getCertain());




    }
}
